package com.xidian.zhiancloud.dao.riskcontrol.riskidenva;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xidian.zhiancloud.model.riskcontrol.TRiskCheckItemsList;
import com.xidian.zhiancloud.model.riskcontrol.entity.TEquipFacStaGY00Entity;
import com.xidian.zhiancloud.model.riskcontrol.entity.TEquipFacStaSS00Entity;
import com.xidian.zhiancloud.model.riskcontrol.entity.TRLedgerStaSS00Entity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TRiskCheckItemsMapper extends BaseMapper<TRiskCheckItemsList> {

    //风险辨识-风险辨识-添加检查项
    int insertTRiskCheckItems(@Param("data") TRiskCheckItemsList data);

    //风险辨识-风险辨识-编辑检查项
    int updateTRiskCheckItems
    (@Param("id") Long id,@Param("params") TRiskCheckItemsList params);

    //风险辨识-风险辨识-删除检查项
    int deleteTRiskCheckItems(List<String> list);

    List<TRiskCheckItemsList> getById(@Param("companyId") Long companyId,
                                      @Param("taskAllocatId")  String taskAllocatId);

    List<TRiskCheckItemsList> getByIds(
            @Param("companyId") Long companyId,
            @Param("id")  String id);
    
    List<TRiskCheckItemsList> getByTridentId(
        @Param("companyId") Long companyId,@Param("id") String id,List<String> tAllIdList);

    int addCheckItemsEntity(@Param("companyId") Long companyId,
        @Param("userId") String userId, TRLedgerStaSS00Entity cheItemEnt);

    int addSS00List(@Param("companyId") Long companyId, @Param("userId") String userId,
                    @Param("data") List<TEquipFacStaSS00Entity> data);


    int addGY00List(@Param("companyId") Long companyId, @Param("userId") String userId,
                    @Param("data") List<TEquipFacStaGY00Entity> data);
    
}
